package com.woniuxy.service.impl;

import com.woniuxy.entity.OrderItem;
import com.woniuxy.mapper.OrderItemMapper;
import com.woniuxy.service.*;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderItemServiceImpl implements OrderItemService {

    @Resource
    private OrderItemMapper orderItemMapper;

    @Transactional
    @Override
    public int add(List<OrderItem> list) {
        int add = orderItemMapper.add(list);
        return add;
    }
}
